<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script src="js/axios.js"></script>
    <script>
        //console.log("ooo");
        axios
            .get("http://jx.xuzhixiang.top/ap/api/goods/goods-add.php", {
                params: {
                    pimg: "imgs/20220713140933.jpg",
                    pname: "42°洋河蓝色经典海之蓝520ml*2",
                    pprice: 278.00,
                    pdesc: "预售商品 预计7-10个工作日发货",
                    uid: 134307,
                },
            })
            .then((res) => {
                console.log(res.data, res);
                if (res.data.code == 1) {
                    // location.href = "index.html";
                } else {
                    //alert("chongshi");
                }
            });
    </script>
</body>

</html>